
import { Entity, NgField, NgObject, EntityList, NgList, NgDynamic, DynamicEntity, NgEntity } from '@farris/devkit';

@NgEntity({
    originalCode: "glzd",
    nodeCode: "glzds"
})
export class GlzdEntity extends Entity {

    @NgField({
        originalDataField: 'ID',
        dataField: 'id',
        primary: true,
        originalDataFieldType: 'String',
        initValue: '',
        path: 'ID',

        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    id: string;

    @NgField({
        originalDataField: 'ParentID',
        dataField: 'parentID',
        originalDataFieldType: 'String',
        initValue: '',
        path: 'ParentID',

        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    parentID: string;

    @NgField({
        originalDataField: 'fileinfo',
        dataField: 'fileinfo',
        originalDataFieldType: 'String',
        initValue: '',
        path: 'fileinfo',

        validRules: [
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    fileinfo: string;

    @NgField({
        originalDataField: 'xfrq',
        dataField: 'xfrq',
        originalDataFieldType: 'String',
        initValue: '',
        path: 'xfrq',

        validRules: [
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    xfrq: string;

    @NgField({
        originalDataField: 'scz',
        dataField: 'scz',
        originalDataFieldType: 'String',
        initValue: '',
        path: 'scz',

        validRules: [
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    scz: string;

    @NgField({
        originalDataField: 'wjbh',
        dataField: 'wjbh',
        originalDataFieldType: 'String',
        initValue: '',
        path: 'wjbh',

        validRules: [
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    wjbh: string;

    @NgField({
        originalDataField: 'wjbz',
        dataField: 'wjbz',
        originalDataFieldType: 'String',
        initValue: '',
        path: 'wjbz',

        validRules: [
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    wjbz: string;

}